package com.by.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author LittleDesire
 * @description
 * @date 2022-03-25 周五 17:45
 * @since 17
 */
@Controller
public class JumpController {
    @RequestMapping("j")
    public String t1() {
        // 重定向  地址栏会变化
        return "redirect:/c.html";
    }


    @RequestMapping("j1")
    public String t2() {
        // 请求转发  地址栏不变
        return "forward:/c.html";
    }
}
